#include<stdio.h>
#include<unistd.h>
#include<pthread.h>
#include<sys/types.h>
#include<stdlib.h>

void *fun(void *arg)
{
	printf("thread ID : %lu,progress ID : %d\n",pthread_self(),getpid());
	return (void*)0;
}

int main()
{
	pthread_t threadid;
	int ret;
	ret = pthread_create(&threadid,NULL,fun,NULL);
	if(ret)
	{
		printf("error!\n");
		exit(-1);
	}

	printf("main thread ID : %lu , main progress ID : %d\n",pthread_self(),getpid());
	sleep(1);
	exit(0);
}

